package org.mobile.api.logger;

import java.util.Map;

import org.mobile.model.util.Constants;

import net.sf.json.JSONObject;

public class DefaultApiLogger extends AbsLocalApiLogger {

	@Override
	protected void addDateToMap(Map<String, Object> map, String userId,
			JSONObject req) {
		JSONObject params = req.optJSONObject(Constants.PARAMS);
		if(params != null)
			try {
				map.put("id", params.getInt("id"));
			} catch (Exception e) {
			}
	}
}
